package cn.itcast.wanxinp2p.account.controller;


import cn.itcast.wanxinp2p.common.domain.CommonErrorCode;
import cn.itcast.wanxinp2p.common.exception.BusinessException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Apollo
 */
@RestController
@RequestMapping
@Api(value = "统一账户微服务", tags = "test", description = "统一账户微服务测试方法")
public class HelloWordController {


    @ApiOperation("测试hello")
    @GetMapping("/helloWord")
    public String helloWord(){
        //自定义一个异常信息进行测试
//        if (true){
//            throw new BusinessException(CommonErrorCode.E_100106);
//        }
        return "Hello 统一账户微服务API";
    }
}